package java67_5;

import java.util.Scanner;

public class GetMax {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int k, max = 0;
		int i = 0;
		int sum = 0;

		while (i < 10) {

			System.out.print("input a number:");
			k = in.nextInt();

			sum += k;
			if (i == 1) {
				max = k;
			} else if (max < k) {
				max = k;
			}

			i++;
		}
		System.out.println("\n最大的的是" + max);
		System.out.println("sum is :" + sum);
	}
}
